<%@ page language="java" contentType="text/html; charset=UTF-8"
import="it.polimi.swim.entity.Skill,java.util.List"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="myStyle.css">
<title>Admin page</title>
</head>
<body>
<div id='header' >
	<div style="float:left"><a href="homeAdmin.jsp">SWIMv2</a></div>
	<div style="float:right;"><a href="SignoutServlet">Sign out</a></div>
</div>
<div id="content">

<h3>Admin panel</h3>
<%
List<Skill> skillList= (List<Skill>)request.getAttribute("skillList");
	for(Skill s:skillList){%>
		<form action="CreateSkillServlet" method="post">
			<input type="hidden" value='<%out.print(s.getId());%>' name = "skillId">
			<label><%out.println(s.getName());%> </label> <input type="submit" value="Accept">
		</form>
	<%}%>
</body>
</html>